<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="pg" uri="/WEB-INF/lib/pager-taglib-2.0.encoded.jar" %>   
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

 <div  class="pageBar">
 <div class="pageRight">
  
  <pg:pager url="${pager.curUrl}" items="${pager.pageMax}"  export="curPage=pageNumber" maxPageItems="1"   maxItems="10" maxIndexPages="10" >
	<span class="pageLeft"> 总共 ${pager.recordMax } 个结果，当前第${curPage } / ${pager.pageMax} 页 </span>
	  	<c:forEach items="${pager.params}" var="pageP">
	  		<pg:param name="${pageP.pname}" value="${pageP.value}"/>  
	  	</c:forEach>
  		<pg:first>
	  		<a href="${pageUrl}">首页</a>
	  	</pg:first>
	  	<pg:prev>
	  		<a href="${pageUrl }">上一页</a>
	  	</pg:prev>
	  	<pg:pages >
	  		<c:choose>	
	  			<c:when test="${curPage==pageNumber}">
	  				<font color="red">${pageNumber }</font>
	  			</c:when>
	  			<c:otherwise >
	  			<a href="${pageUrl }">${pageNumber }</a>
	  			</c:otherwise>
	  		</c:choose>
	  	</pg:pages>
	  	<pg:next>
	  		<a href="${pageUrl }">下一页</a>
	  	</pg:next>
	  	<pg:last>
	  		<a href="${pageUrl }">尾页</a>
	  	</pg:last>
  	</pg:pager>
     </div>
</div>
            
            



